public string RetrieveAETitle { get; }
public:
property String^ RetrieveAETitle {
String^ get();
}
A System.String value that represents the retrieve AE title.
using Leadtools;
using Leadtools.Dicom.Scu;
using Leadtools.Dicom.Scu.Common;
using Leadtools.Dicom;
using Leadtools.Dicom.Common.DataTypes;
using Leadtools.Dicom.Common.DataTypes.Status;
List<Study> Studies = new List<Study>();
List<Series> StudySeries = new List<Series>();
public void StudyRetrieve()
{
DicomEngine.Startup();
DicomNet.Startup();
QueryRetrieveScu studyRetrieve = new QueryRetrieveScu();
FindQuery query = new FindQuery();
DicomScp scp = new DicomScp();
//
// Change these parameters to reflect the calling AETitle.
//
studyRetrieve.AETitle = CLIENT_AE_TITLE;
studyRetrieve.HostPort = CLIENT_PORT;
studyRetrieve.HostAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork);
//
// Change these parameters to reflect the called AETitle (server).
//
scp.AETitle = SCP_AE_TITLE;
scp.Port = SCP_PORT;
scp.Timeout = 60;
scp.PeerAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork); // IPAddress.Parse("192.168.0.209")
//
// Find all studies
//
query.QueryLevel = QueryLevel.Study;
studyRetrieve.MatchStudy += new MatchStudyDelegate(studyRetrieve_MatchStudy);
studyRetrieve.MatchSeries += new MatchSeriesDelegate(studyRetrieve_MatchSeries);
studyRetrieve.Find(scp, query);
if (Studies.Count > 0)
{
//
// Find all series in study
//
Studies[0].FindSeries();
if (StudySeries.Count > 0)
{
//
// Move all series to me
//
Studies[0].Move(string.Empty);
}
}
studyRetrieve = null;
query = null;
scp = null;
DicomNet.Shutdown();
DicomEngine.Shutdown();
}
void studyRetrieve_MatchStudy(object sender, MatchEventArgs<Study> e)
{
Console.WriteLine("Match Study: " + e.RetrieveAETitle);
Console.WriteLine("Availability: " + e.Availability);
Studies.Add(e.Info);
}
void studyRetrieve_MatchSeries(object sender, MatchEventArgs<Series> e)
{
Console.WriteLine("Match Series: " + e.RetrieveAETitle);
Console.WriteLine("Availability: " + e.Availability);
StudySeries.Add(e.Info);
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document